package com.ruoyi.client.mapper;

import com.ruoyi.client.domain.vo.response.ClientCreditRecordResponseVo;
import com.ruoyi.common.core.domain.entity.Reward;
import com.ruoyi.common.core.domain.entity.RewardExchange;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 奖品管理Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-21
 */
public interface ClientRewardMapper
{


    List<Reward> getRewardList();

    Reward getReward(Integer id);

    Integer updateRewardRemain(@Param("rewardId") Integer rewardId, @Param("count") Integer count);

    Integer insertExchangeRecord(RewardExchange rewardExchange);

    List<ClientCreditRecordResponseVo> getCreditIn(String userId);

    List<ClientCreditRecordResponseVo> getCreditOut(String userId);
}
